//package arrays;
import junit.framework.*;

public class CalculateTest extends TestCase{
	Calculator c= new Calculator();
	public void setUp(){
                
                // set upmethod typically does initializations,
		//checks to see if server is connected or not if not connect
		//opens the database,database connections etc.
		//tear down typically checks to see if files are closed etc.

		System.out.println(" Testing the set up method");
		
	                  }

	public void testAdd(){
		int sum = c.addmthd(15,8);
		
	    assertEquals(23, sum);
                                }
        public void testSub(){
            int diff = c.subtractMthd(4, -7);
	    
	    assertEquals(11,diff);

                   }
         public void testmulti(){
            int prod=c.multiplyMthd(4, -6);
	    
	    assertEquals(-24,prod);
                      }

         public void testDiv(){
             double quo=c.divideMthd(2, 4);
	    assertEquals(0.5,quo);
	    
	}  
   
	public void tearDown(){
		System.out.println("testing  the tear down method");
	}

  }
